package com.event.core.properties;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.lang.annotation.Annotation;
import java.util.List;

/*
 * @description 注解属性配置类
 * @author Bing
 * @date 2024/10/8 14:08
 **/
@Data
@Component
@ConditionalOnProperty(name = "config.annotation.enable", havingValue = "true")
@ConfigurationProperties(prefix = "config.annotation.monitor")
public class AnnotationEventProperties {
    // 监控包名
    private String packageName;
    // 缓存解析器名称
    private String cacheableParseName;

    private List<Class<? extends Annotation>> annotations;

}
